package com.acane.instagram.service;

import com.acane.instagram.pojo.dto.ChatDTO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;


public interface ChatService extends IService<ChatDTO> {

    void saveMessage(ChatDTO message);
    List<ChatDTO> getMessagesByUser(String receiver);

    List<ChatDTO> getHistory(String sender, String receiver);

    List<ChatDTO> getChatList(Integer page, Integer size);
}
